let fs= require("fs")


// 同步
// let readMe=fs.readFileSync("./readMe.txt","utf8")b编码格式
// console.log(readMe);

// fs.writeFileSync('writeme.txt',readMe)


// 异步读取 写入
let readMe=fs.readFile('./readMe.txt','utf8',function(err,data){
    console.log('读取');
    
    fs.writeFile("writeMe.txt",data,function(){
        console.log("写入数据完成");
    })
})
console.log('end');
